package com.luych.toolbox.docker.service.entity;

import com.luych.toolbox.common.enums.DockerRegistryStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "docker_registry")
public class DockerRegistry extends BaseEntity {

    @Column(name = "name")
    private String name;
    @Column(name = "url")
    private String url;
    @Column(name = "user")
    private String user;
    @Column(name = "pass")
    private String pass;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DockerRegistryStatus status;
    @Column(name = "owner_id")
    private String ownerId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public DockerRegistryStatus getStatus() {
        return status;
    }

    public void setStatus(DockerRegistryStatus status) {
        this.status = status;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
}
